package com.chiangleoi.appointment.model.schedule;

import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 定时任务
 *
 * @author Mark
 */
@Data
public class ScheduleJobEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 任务调度参数key
     */
    public static final String JOB_PARAM_KEY = "JOB_PARAM_KEY";

    /**
     * 任务id
     */
    private Long id;

    /**
     * job bean名称
     */
    private String jobName;



    /**
     * spring bean名称
     */
    private String beanName;

    /**
     * 参数
     */
    private String params;

    /**
     * cron表达式
     */
    private String cronExpression;

    /**
     * 任务状态
     */
    private Integer status;

    /**
     * 备注
     */
    private String remark;

    /**
     * 创建时间
     */
    private Date createTime;

}
